package org.mokusakura.persistence.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.mokusakura.domain.Category;

import java.util.List;

@Mapper
public interface CategoryMapper {
    /**
     * @return 获得所有Category的List
     */
    List<Category> getCategoryList();

    /**
     * <p>根据id查找category </p>
     *
     * @param categoryId - 要查找的id
     * @return null或一个Category
     */
    Category getCategoryById(String categoryId);
}
